﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace BLL
{
    public class PageData
    {
        private readonly Aliyeye.Car.Net.Dal.PageData dal = new Aliyeye.Car.Net.Dal.PageData();

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(Model.PageData value)
        {
            return dal.GetList(value);
        }

        /// <summary>
        /// 执行语句，获取第一行第一列
        /// </summary>
        /// <param name="strSql"></param>
        /// <returns></returns>
        public int ExecuteScalar(string strSql)
        {
            return dal.ExecuteScalar(strSql);
        }
    }
}
